package com.hixtrip.sample.domain.order.repository;


import com.hixtrip.sample.domain.order.model.Order;
import com.hixtrip.sample.domain.pay.model.CommandPay;

/**
 *
 */
public interface OrderRepository {
    int createOrder(Order order);

    /**
     * 支付成功
     * @param commandPay
     */
    void payOk(CommandPay commandPay);

    /**
     * 支付失败
     * @param commandPay
     */
    void payError(CommandPay commandPay);
}
